package com.jic.product.mapper;

import com.jic.product.entity.ProductAfterSale;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 商品售后表
 *
 * @author :
 * @version : v1.0.0
 * @email :
 * @since : 2020-01-10 07:03:01
 */
@Mapper
public interface ProductAfterSaleMapper {

    long insert(ProductAfterSale productAfterSale);

    long delete(Long id);

    long update(ProductAfterSale productAfterSale);

    ProductAfterSale queryByPrimaryKey(Long id);

    List<ProductAfterSale> query(ProductAfterSale productAfterSale);

    List<ProductAfterSale> queryPage(@Param("startIndex") int startIndex, @Param("limit") int limit,  @Param("productAfterSale")ProductAfterSale productAfterSale);

    long queryPageCount(ProductAfterSale productAfterSale);

    ProductAfterSale getProductAfterSale(ProductAfterSale productAfterSale);


}